//
//  UserDefaults.h
//  HTTP_request
//
//  Created by 姚琪 on 2017/12/8.
//  Copyright © 2017年 姚琪. All rights reserved.
//

#import <Foundation/Foundation.h>

@class MyPerson;
@interface UserDefaults : NSObject
// 单例
+ (UserDefaults *)shareInstance;
// 同步
- (void)synchronize;

// 设置用户信息
- (void)setLoginState:(BOOL)isLogin;
- (void)setUsername:(NSString *)username;
- (void)setPassword:(NSString *)password;
- (void)setImage:(NSString *)image;
- (void)setUserId:(NSString *)userId;
//阅读时间
- (void)setReadingTime:(NSString *)readingTime;




//经纬度
- (void)setLongitude:(NSString *)longitude;
- (void)setLatitude:(NSString *)latitude;
- (void)setAddress:(NSString *)address;

//店铺id
- (void)setShopId:(NSString *)shopId;

// 删除用户
- (void)deleteUser;

//获取用户信息
- (BOOL)loginState;
- (NSString *)username;
- (NSString *)password;
- (NSString *)image;
- (NSString *)userId;
- (NSString *)readingTime;
//经纬度
- (NSString *)longitude;
- (NSString *)latitude;
- (NSString *)address;


//店铺id
-(NSString *)shopId;

- (MyPerson *)person;


@end
